using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using BusinessLayer;

namespace DeAn_LapTrinhCSDL.UserControl
{
    public partial class ucTKTongSLDatNhap : DevExpress.XtraEditors.XtraUserControl
    {
        public ucTKTongSLDatNhap()
        {
            InitializeComponent();
        }

        private void ucTKTongSLDatNhap_Load(object sender, EventArgs e)
        {
            ThongKe tk = new ThongKe();
            tk.connect.ConnectionString = Program.strConnect;
            Report.rpThongKeTongSLDatNhap rpt = new DeAn_LapTrinhCSDL.Report.rpThongKeTongSLDatNhap();
            rpt.DataSource = tk.GetDataThongKeTongSLDatNhap();
            printControl1.PrintingSystem = rpt.PrintingSystem;
            rpt.CreateDocument();
        }
    }
}
